class CreateCulturalHeritageCulturalInstitutions < ActiveRecord::Migration
  def self.up
    create_table :cultural_heritage_cultural_institutions do |t|
      t.string :name
      t.text :description
      t.text :address
      t.string :email
      t.integer :phone
      t.string :web
      t.string :departament
      t.string :province
      t.integer :deleted, :default=>0
      t.boolean :gmaps, :default=>false
      t.decimal :latitude,{:precision=>10, :scale=>6}
      t.decimal :longitude,{:precision=>10, :scale=>6}
      t.timestamps
    end
  end

  def self.down
    drop_table :cultural_heritage_cultural_institutions
  end
end
